import Vue from 'vue'
import './plugins/axios'
import App from './App.vue'
import router from './router'
import './plugins/element.js'
import axios from 'axios'
import Qs from 'qs'

// 配置基地址
axios.defaults.baseURL = 'http://192.168.1.31:8082/guichi/'
axios.defaults.headers['Content-Type'] = 'application/x-www-form-urlencoded';
axios.defaults.transformRequest=[function(data){return Qs.stringify(data)}];

// 将axios当做一个属性挂载给Vue的函数的原型上
Vue.prototype.$http = axios
Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
